package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.AppUserAboutMapper;
import com.ruoyi.system.domain.AppUserAbout;
import com.ruoyi.system.service.IAppUserAboutService;
import com.ruoyi.common.core.text.Convert;

/**
 * 用户删除推荐记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-08-18
 */
@Service
public class AppUserAboutServiceImpl implements IAppUserAboutService 
{
    @Autowired
    private AppUserAboutMapper appUserAboutMapper;

    /**
     * 查询用户删除推荐记录
     * 
     * @param id 用户删除推荐记录ID
     * @return 用户删除推荐记录
     */
    @Override
    public AppUserAbout selectAppUserAboutById(Long id)
    {
        return appUserAboutMapper.selectAppUserAboutById(id);
    }

    /**
     * 查询用户删除推荐记录列表
     * 
     * @param appUserAbout 用户删除推荐记录
     * @return 用户删除推荐记录
     */
    @Override
    public List<AppUserAbout> selectAppUserAboutList(AppUserAbout appUserAbout)
    {
        return appUserAboutMapper.selectAppUserAboutList(appUserAbout);
    }

    /**
     * 新增用户删除推荐记录
     * 
     * @param appUserAbout 用户删除推荐记录
     * @return 结果
     */
    @Override
    public int insertAppUserAbout(AppUserAbout appUserAbout)
    {
        return appUserAboutMapper.insertAppUserAbout(appUserAbout);
    }

    /**
     * 修改用户删除推荐记录
     * 
     * @param appUserAbout 用户删除推荐记录
     * @return 结果
     */
    @Override
    public int updateAppUserAbout(AppUserAbout appUserAbout)
    {
        return appUserAboutMapper.updateAppUserAbout(appUserAbout);
    }

    /**
     * 删除用户删除推荐记录对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteAppUserAboutByIds(String ids)
    {
        return appUserAboutMapper.deleteAppUserAboutByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除用户删除推荐记录信息
     * 
     * @param id 用户删除推荐记录ID
     * @return 结果
     */
    @Override
    public int deleteAppUserAboutById(Long id)
    {
        return appUserAboutMapper.deleteAppUserAboutById(id);
    }
}
